<!DOCTYPE html>
<html lang="en">

  <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>背景</title>
  </head>
  <style>
    /* 
    background-position图片位置
       1.可以设置top center bottom/left center right
       2.可以设置x,y轴
       3.可以是具体数字
     */
    .content {
      height: 600px;
      background-color: pink;
      background-image: url('../img/animal.jpg');
      background-repeat: no-repeat;
      background-position: center center;
    }
  </style>

  <body>
    <div class="content"></div>
  </body>

</html>